This is called a Spacejump Method. A picture must be marked with the ISMAP attribute to react on the Spacejump method. And a script holds the URLs which will be sent to the user if he has done a mouse click near to a marked region.
Each region is described by a tuple (x,y,url), which specifies the coordinates and the Uniform Resource Locator of a document.
Here is the part of the document containing the link to the picture:
<A HREF="SPACEJMP/SCRIPT.JMP"><IMG SRC="INFOSMA.GIF" ISMAP></A>
The server is scanning the URL for the string ".JMP" and interpretes this file as the (coordinates,URL) pair for the selected documents.
The scriptfile SCRIPT.JMP will have the following lines:
100 100 SPACEJMP\DOC01.HTM 500 500 SPACEJMP\DOC02.HTMIf the root directory for a client is c:\SERWEB\ and the client clicks near to the point (100,100), then the file c:\SERWEB\SPACEJMP\DOC01.HTM will be sent.
Notice however, that you have to prefix the path with
SPACEJMP\, because this is a command to the server (having no idea of the
actual path of the client). In the requested documents you have to specify
relative paths. The best is to put all references inside the \SPACEJMP
directory. If the document DOC01.HTM has an anchor
<IMG SRC="MYPIC.GIF">
,
then the client requests the picture with a
GET /SPACEJMP/MYPIC.GIF command.
This is a little bit tricky, but the HTTP protocol is tricky as well.
There are only a few syntax checks for the scriptfile, so please add a space after the coordinates and place each location on a seperate line.
If you like you might try a demonstration of Web4Ham forms.